#include <iostream>
#include <sw/redis++/redis++.h>
using namespace sw::redis;
using namespace std;

int main()
{
    auto redis = Redis("tcp://127.0.0.1:6379");

    redis.set("name", "niqiu");
    auto name = redis.get("name");
    if (name)
    {
        cout << "Get the name is " << *name << endl;
    }

    return 0;
}